package com.cadre.system.service.impl;

import com.cadre.system.domain.officer.A01;
import com.cadre.system.domain.officer.RewardInfo;
import com.cadre.system.mapper.A01Mapper;
import com.cadre.system.service.RewardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("rewardService")
public class RewardServiceImpl implements RewardService {
    @Autowired
    private A01Mapper a01Mapper;

    @Override // com.tdqy.cadre.modular.profess.service.RewardService
    public RewardInfo rewardMsg(String flowid) {
        RewardInfo rewardInfo = new RewardInfo();
        A01 a01s = this.a01Mapper.selectByPrimaryKey(flowid);
        if (a01s != null) {
            rewardInfo.setFlowid(a01s.getFlowid());
            rewardInfo.setA2601(a01s.getA2601());
        }
        return rewardInfo;
    }
}
